/* 常用函数封装 */

// 跳转到应用内的某个页面
var navigateTo = function(url) {
    wx.navigateTo({
        url: url,
        success: res => {
            console.log('跳转成功！');
        },
        fail: err => {
            console.log('跳转失败！', err);
        }
    });
}

module.exports = {
    navigation: navigateTo
}